#include <stdio.h>
#include <string.h>

int main()
{
    char arr[] = "zpengwei@yeah.net";
    char buf[256] = { 0 };
    strcpy(buf, arr);

    char* sep = "@.";

    char* ret = strtok(buf, sep);
    printf("$s\n", ret);

    return 0;
}